<extend name="Base/base" />
<block name="button">
	
	<button class="btn btn-primary" type="submit" form="form"><i class="fa fa-save"></i> {:L('text_save')}</button>
</block>
<block name="body">
	<if condition="$msg">
		<div class="alert alert-danger alert-dismissible fade in" role="alert">
		      <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
		      {$msg.warning}

		    </div>
	</if>
	<div class="panel panel-default">
		<div class="panel-heading">
			<h4><i class="fa fa-pencil fa-fw"></i>  {$heading_title}</h4>
		</div>
		<div class="panel-body">
			<form action="" method="post" id="form" class="form-horizontal">
				<div class="form-group">
					<label for="input-sort-order" class="col-sm-2 control-label">{:L('entry_sort_order')}</label>
					<div class="col-sm-10">
						<input type="number" class="form-control" id="input-sort-order" name="sort_order" placeholder="{:L('entry_sort_order')}" value="{$setting_group.sort_order|default=''}">
					</div>
				</div>
				<hr>	
				<ul class="nav nav-tabs">
					<foreach name="languages" key="key" item="language">
						<li class="{$key?'':'active'}">
							<a href="#language{$language.language_id}" data-toggle="tab"><img src="__PUBLIC__/Images/flags/{$language.image}">  {$language.name}</a>
						</li>
					</foreach>
				</ul>
				<div class="tab-content">
					<foreach name="languages" key="key" item="language">
						<div class="tab-pane {$key?'':'active'}" id="language{$language.language_id}">
							<div class="form-group required">
								<label for="input-name{$language.language_id}" class="col-sm-2 control-label">{:L('entry_title')}</label>
								<div class="col-sm-10">
									<input id="input-name{$language.language_id}" type="text" value="{$setting_group['text'][$language['language_id']]['title']|default=''}" name="text[{$language.language_id}][title]" class="form-control" placeholder="{:L('entry_title')}">
									<if condition="isset($msg['title'][$language['language_id']])">
									{$msg['title'][$language['language_id']]|danger_msg=###}
									</if>
								</div>
							</div>
						</div>
					</foreach>
				</div>
			</form>
		</div>		
	</div>
</block>
